package com.ethanzzh.security.core.validate.image;

import com.ethanzzh.security.core.validate.ValidateCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.awt.image.BufferedImage;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ImageCode extends ValidateCode {

    //图片
    private BufferedImage image;

    public ImageCode(BufferedImage image, String code, int expireTime) {
        super(code, expireTime);
        this.image = image;
    }


}
